Resursbank\EcomTest\Unit\Lib\Model\Payment\Order\ActionLog\OrderLineTest S

Total Complexity 35
Dependencies 11
Dependents 0
Total lines 488
Lines of code 200
Logical lines of code 74
Comment lines 208
Methods 27
Properties 2

Methods 27

Method Rating Maintainability Complexity Lines of code
getPriceData()
S
60 4 13
convert()
S
58 3 16
testAcceptablePriceValues()
S
54 2 25
testAllowedPriceData()
S
61 2 12
getRandomString()
S
62 2 11
testTotalVatAmountThrowsWhenItHasTooManyDecimals()
S
75 1 4
testTotalVatAmountWasAssigned()
S
70 1 7
testTotalAmountIncludingVatWasAssigned()
S
70 1 7
testUnitAmountIncludingVatWasAssigned()
S
70 1 7
testVatRateWasAssigned()
S
70 1 7
testQuantityWasAssigned()
S
70 1 7
testQuantityUnitWasAssigned()
S
70 1 7
testTypeWasAssigned()
S
68 1 8
testReferenceWasAssigned()
S
70 1 7
testDescriptionWasAssigned()
S
70 1 7
setUp()
S
77 1 4
testTotalAmountIncludingVatThrowsWhenItHasTooManyDecimals()
S
75 1 4
testUnitAmountIncludingVatThrowsWhenItHasTooManyDecimals()
S
75 1 4
testQuantityThrowsWhenNegative()
S
74 1 4
testVatRateThrowsWhenTooBig()
S
75 1 4
testVatRateThrowsWhenItHasTooManyDecimals()
S
75 1 4
testVatRateThrowsWhenNegative()
S
74 1 4
testValidateQuantityUnitThrowsWhenTooLong()
S
70 1 6
testValidateReferenceThrowsWhenTooLong()
S
70 1 6
testValidateDescriptionThrowsWhenTooLong()
S
70 1 6
getRandomPrice()
S
70 1 5
testQuantityThrowsWhenItHasTooManyDecimals()
S
75 1 4